package com.example.mapper;

import com.example.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 * Description:使用mybatis 数据层接口实现
 * User: bjc
 * Date: 2025-07-23
 * Time: 21:01
 */
@Mapper
public interface UserInfoMapper {

    //用户登陆接口实现，通过用户名查询密码
    @Select("select * from user_info where delete_flag = 0 and user_name = #{name}")
    UserInfo queryUserInfoByUserName(String userName);

}
